package com.cgly.medical.mapper;

import com.cgly.medical.entity.PatientHistoryEntity;
import com.cgly.medical.model.PatientHistoryModel;
import com.cgly.medical.param.PatientHistoryParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 黄浩然
 */
public interface PatientHistoryMapper {

    //查询所有就诊记录
    List<PatientHistoryModel> getAllPatientHistory(PatientHistoryParam param);

    //添加就诊记录
    int addPatientHistory(PatientHistoryEntity entity);

    //按id查询
    PatientHistoryModel getPatientHistoryById(Long id);

    //修改就诊记录
    int updatePatientHistory(PatientHistoryEntity entity);

    //删除就诊记录
    int deletePatientHistory(Long id);

    //通过医生id查询就诊记录
    List<PatientHistoryModel> getPatientHistoryByDoctorId(PatientHistoryParam param);
}
